package dto;

public class PrivacyDTO {
	private String privacyCode;
	private String privacyContents;
	
	public PrivacyDTO() {
		super();
	}
	public PrivacyDTO(String privacyCode, String privacyContents) {
		super();
		this.privacyCode = privacyCode;
		this.privacyContents = privacyContents;
	}
	public String getPrivacyCode() {
		return privacyCode;
	}
	public void setPrivacyCode(String privacyCode) {
		this.privacyCode = privacyCode;
	}
	public String getPrivacyContents() {
		return privacyContents;
	}
	public void setPrivacyContents(String privacyContents) {
		this.privacyContents = privacyContents;
	}
	@Override
	public String toString() {
		return "PrivacyDTO [privacyCode=" + privacyCode + ", privacyContents="
				+ privacyContents + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((privacyCode == null) ? 0 : privacyCode.hashCode());
		result = prime * result
				+ ((privacyContents == null) ? 0 : privacyContents.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PrivacyDTO other = (PrivacyDTO) obj;
		if (privacyCode == null) {
			if (other.privacyCode != null)
				return false;
		} else if (!privacyCode.equals(other.privacyCode))
			return false;
		if (privacyContents == null) {
			if (other.privacyContents != null)
				return false;
		} else if (!privacyContents.equals(other.privacyContents))
			return false;
		return true;
	}
	
}
